package com.eian.boot.module.system.dept.model.entity;

import com.eian.boot.mybatis.core.model.BaseEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 系统部门表 实体类
 *
 * @author alex.meng
 * @since 1.0.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "t_sys_dept")
public class SysDeptEntity extends BaseEntity {

    @Column(value = "parent_id")
    private Long parentId;

    @Column(value = "ancestors")
    private String ancestors;

    @Column(value = "dept_name")
    private String deptName;

    @Column(value = "dept_code")
    private String deptCode;

    @Column(value = "leader_id")
    private Long leaderId;

    @Column(value = "phone")
    private String phone;

    @Column(value = "email")
    private String email;

    @Column(value = "sort_order")
    private Integer sortOrder;

    @Column(value = "status")
    private Integer status;
}

